package com.alameda.provider.danmaku;

import com.alameda.danmaku.api.ApVideoDanmakuProvider;
import com.alameda.service.danmaku.ApVideoDanmakuService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 视频弹幕 同步接口层 具体实现
 *
 * @author Lv
 * @date 2025/01/15
 */
@DubboService
public class ApVideoDanmakuProviderImpl implements ApVideoDanmakuProvider {

    @Autowired
    private ApVideoDanmakuService apVideoDanmakuService;

    /**
     * 删除视频弹幕
     *
     * @param idList 媒体文件id集合
     * @return
     */
    @Override
    public Boolean removeDanmakuByMediaIdList(List<Long> idList) {
        return apVideoDanmakuService.removeDanmakuByMediaIdList(idList);
    }

    /**
     * 物理层面删除已逻辑删除超过七天的视频弹幕
     */
    @Override
    public Boolean removeLogicDeletedFileDanmaku() {
        return apVideoDanmakuService.removeLogicDeletedFileDanmaku();
    }
}
